package com.mall.admin.controller;

import com.mall.admin.service.OmsOrderSettingService;
import com.mall.commons.utils.R;
import com.mall.domain.OmsOrderSetting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/orderSetting")
public class OmsOrderSettingController {

    @Autowired
    private OmsOrderSettingService omsOrderSettingService;

    //获取指定订单设置
    @GetMapping("/{id}")
    public R findSetting(@PathVariable Long id){
        OmsOrderSetting omsOrderSetting = omsOrderSettingService.findSetting(id);
        return R.success("获取指定订单设置",omsOrderSetting);
    }
}
